#ifndef kde4_ffmpegthumbcreator_h
#define kde4_ffmpegthumbcreator_h

#include <kio/thumbcreator.h>
#include <QObject>

#define DEFAULT_THUMBNAIL_SIZE 128
#define DEFAULT_THUMBNAIL_QUALITY 8
#define INITIAL_SEEK_PERCENTAGE 11

class FfmpegThumbCreator : public QObject, public ThumbCreator
{
Q_OBJECT

public:
    //! Ctor.
    FfmpegThumbCreator() {}

    //! Dtor.
    ~FfmpegThumbCreator() {}

    //! Create a new preview for file 'path'.
    bool create(const QString &path, int width, int height, QImage &img);

    //! Return a flag indicating how the preview icon should be drawn.
    Flags flags() const
    {
        return BlendIcon;
    }

    //! Data.
private:
};

#endif // kde4_ffmpegthumbcreator_h
